package com.xinruke.hostels.dailymanage.mapper;

import com.xinruke.hostels.common.po.YwFangtairiqijilu;
import com.xinruke.hostels.dailymanage.interfaces.dto.RemainCountQueryDto;
import com.xinruke.hostels.dailymanage.interfaces.dto.RoomReservationQueryDTO;
import com.xinruke.hostels.dailymanage.interfaces.dto.RoomReservationResultDTO;
import com.xinruke.hostels.dailymanage.interfaces.dto.roomstatus.RSArriveTodayRoomDTO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

public interface YwFangtairiqijiluMapper extends Mapper<YwFangtairiqijilu> {
    Integer queryRemainRoomCount(@Param("params") RemainCountQueryDto params);

    RoomReservationResultDTO selectRandomRoomId(@Param("params")RoomReservationQueryDTO params);

    /**
     * 获取时间段内，预计抵达的房间id和抵达时间
     */
    List<RSArriveTodayRoomDTO> listRoomIdWithDate(@Param("jiudianId") Integer jiudianId, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
}